import {createStore,combineReducers,compose,applyMiddleware} from 'redux'
import reducer from './reducer'
import thunk from 'redux-thunk'

const store = createStore(
    reducer,
    // compose(   // 使用中间件
    //     applyMiddleware(...[thunk])
    // ),
    //下面是调试工具
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
export default store